package com.xj.homework.pattern.factory.abstractFactory;

public class Test {
    public static void main(String[] args) {
        SunSongFactory sunSongFactory = new SunSongFactory();
        AppleFactory appleFactory = new AppleFactory();
        Package aPackage = sunSongFactory.createPackage();
        Phone phone = sunSongFactory.createPhone();
        phone.call();
        aPackage.use();

        Package applePackage = appleFactory.createPackage();
        Phone phone1 = appleFactory.createPhone();
        phone1.call();
        applePackage.use();
    }
}
